﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRDD.InputDto._210908
{
    /// <summary>
    ///  获取人员详情
    /// </summary>
    public class InputStoreUserInfo
    {
        /// <summary>
        ///  店铺ID
        /// </summary>
        [Required]
        public int storeID { get; set; }
        /// <summary>
        ///  电话号码，精确匹配用户电话
        /// </summary>
        [Required(ErrorMessage = "userPhone：电话号码不能为空！")]
        public string userPhone { get; set; }
        /// <summary>
        ///  数据字典下拉代码
        /// </summary>
        [Required(ErrorMessage = "dictCode：数据字典下拉代码不能为空！")]
        public string dictCode { get; set; }
        /// <summary>
        ///  数据字典根代码
        /// </summary>
        [Required(ErrorMessage = "dictType：数据字典根代码不能为空！")]
        public string dictType { get; set; }
    }
    public class InputCheckUserType
    {
        /// <summary>
        ///  用户编码
        /// </summary>
        [Required(ErrorMessage ="用户编码必传项！")]
        public string userid { get; set; }
        /// <summary>
        ///  店铺ID
        /// </summary>
        [Required]
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请正确输入店铺storeID")]
        public int storeID { get; set; }
        /// <summary>
        ///  数据字典下拉代码
        /// </summary>
        [Required(ErrorMessage = "dictCode：数据字典下拉代码不能为空！")]
        public string dictCode { get; set; }
        /// <summary>
        ///  数据字典根代码
        /// </summary>
        [Required(ErrorMessage = "dictType：数据字典根代码不能为空！")]
        public string dictType { get; set; }
    }
}